package cn.itsource.ymcc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MediaDto {
    @NotNull(message = "chapterId 不能为空！")
    private Long chapterId;// 1455441589521596400
    @NotEmpty(message = "chapterName 不能为空！")
    private String chapterName;// "第一章 Hello GPT"
    @NotNull(message = "courseId 不能为空！")
    private Long courseId;// 16
    @NotEmpty(message = "courseName 不能为空！")
    private String courseName;// "Java ChatGPT 大师班"
    @NotEmpty(message = "视频名称 不能为空！")
    private String name;// "视频的原名字"

    private String number;// "章节数"
    private String videoUrl;// "上传的地址"
}
